/****  
* 如果每个library共性很高，就用默认配置,--webpack.lib.js
* 特殊项目的应该framework一样写单独配置，提高灵活性
***/

const path = require("path");
const MakeConfig = require("../webpack.lib");
const {distPath,basePath}=require("../config");//打包工程输出根目录

// lib打包配置区
const libraryName = "lib_dma";// library名字 ***不要取去掉【lib_】dev-server的express会根据路径取值***
const libraryPath = path.resolve(distPath,"product", libraryName);//打包lib输出目录
const publicPath = basePath+"product/" + libraryName + "/";
const dllPath = path.resolve(distPath, "dll");//dll路径
const entryPath = path.resolve(__dirname,"../../product/dma/index.js");//入口文件路径
const moduleRegex = /node_modules/;//排除不编译的模块路径
const isMiniStats = false; // webpack日志简化
const isAnalyzeBundle = false;// bundle依赖分析
const isShowTime = false;// 显示打包分析时长

const config=MakeConfig({
  libraryName,
  distPath,
  libraryPath,
  publicPath,
  dllPath,
  entryPath,
  moduleRegex,
  isMiniStats,
  isAnalyzeBundle,
  isShowTime,
})

module.exports = config;
